using CooliteExample.Model;

namespace CooliteExamples.Code.DTO
{
    public class Category
    {
        public int CategoryId { get; set; }
        public string Name { get; set; }

        internal Category(mCategory categoryEntity)
        {
            CategoryId = categoryEntity.CategoryId;
            Name = categoryEntity.Name;
        }

        public Category(int value)
        {
            CategoryId = value;
        }
    }
}